Ext.define('appmod.view.resources.AllMenuTreeGrid', {
    extend: 'Ext.tree.Panel',
	alias: 'widget.allmenutreegrid', 

    initComponent: function() {
        var me = this;

        Ext.applyIf(me, {
			columns:[{
            	xtype: 'treecolumn', //this is so we know which column will show the tree
            	text: '菜单名称',
            	flex: 2,
            	sortable: true,
            	dataIndex: 'text'
        	}, {
				xtype : 'gridcolumn',
				text :'菜单编码',
				width:200,
				dataIndex:'code'
			} , {
				xtype : 'numbercolumn',
				text : '层次',
				dataIndex:'menuLevel',
				format:'0'
			} , {
				xtype : 'booleancolumn',
				text: '禁用',
				dataIndex : 'disabled',
				trueText:'是',
				falseText:'否'				
			}
			]
        });

        me.callParent(arguments);

    }

	
});